package qingke.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="addlable")
public class AddLable {

	@Id
	@Column(name = "id")
	private int id;

	
	@ManyToOne
	@JoinColumn(name = "lable_id")
	private Lable lable;
	
	@ManyToOne
	@JoinColumn(name = "memorandum_id")
	private Memorandum memorandum;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Lable getLable() {
		return lable;
	}

	public void setLable(Lable lable) {
		this.lable = lable;
	}

	public Memorandum getMemorandum() {
		return memorandum;
	}

	public void setMemorandum(Memorandum memorandum) {
		this.memorandum = memorandum;
	}


	public String toString1() {
		return "AddLable [id=" + id + ", lable=" + lable + ", memorandum=" + memorandum + "]";
	}

	public String toString() {
		return "AddLable [id=" + id + "]";
	}
	
	


	
	
}
